package model.entities;

import java.util.Collection;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;

@Entity
@DiscriminatorValue("7")
public class Administracion extends Area
{
	@ManyToMany
	@JoinTable(name = "Proveedores_Areas", joinColumns = { @JoinColumn(name = "idArea", nullable = false) }, inverseJoinColumns = { @JoinColumn(name = "idProveedor", nullable = false) })
	private Collection<Proveedor> proveedores;

	public Collection<ItemMercaderia> verificarComprasARealizar()
	{
		// TBD
		return null;
	}

	public void aceptarOfertaProveedor(Collection<ItemMercaderia> ofertas)
	{
		//TODO
	}

	public boolean aceptarCompra()
	{
		// TODO
		return false;
	}

	public boolean controlarCompra(Collection<ItemMercaderia> itemsRemito)
	{

		return false;
	}

	public Collection<Proveedor> getProveedores()
	{
		return proveedores;
	}

	public void setProveedores(Collection<Proveedor> proveedores)
	{
		this.proveedores = proveedores;
	}
}
